import { post, get, put } from "../utils/request";

export const loginAPI = (data) => post("/api/v1/auth/login", data);

export const regAPI = (data) => post("/api/v1/auth/reg", data);

// 获取用户信息
export const userInfoAPI = () => get("/api/v1/user/info");

// 用户签到
export const checkInAPI = () => post("/api/v1/user/check_in");

// 修改用户信息
export const changeUserInfoAPI = (data) => put("/api/v1/user/modify", data);

// 修改密码
export const changeUserPwdAPI = (data) => put("/api/v1/user/update_pwd", data);
